<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>群成员列表</title>
    <?php require 'templates/common/head.html'; ?>
    <style type="text/css">
        .divleft{width: 33%; float: left; text-align:left; border-right: solid 1px #d5d5d5; margin-right: 2% }
        .divcenter{width: 33%; float: left; text-align:left; border-right: solid 1px #d5d5d5; margin-right: 2%}

        .divright{ width: 28%; float: left; text-align:left;  margin-right: 2%}
        .position {
            position: absolute;
            display: none;
            z-index: 15;
            width: 400px;
            height: 40px;
            margin: -20px 0 0 -75px;
            padding: 0 10px;
            background: #eee;
            line-height: 2.4;
            cursor:pointer;
        }
    </style>
</head>
<body>


<div class="container-fluid">
    <?php require 'templates/common/nav.html'; ?>
    <div class="panel panel-primary">
        <div class="panel-heading text-center"><h3 class="panel-title">群成员列表</h3></div>
        <div class="panel-body" style="text-align:center">
            <div style="margin: 0 0 10px 0;text-align:left"><b style="color:#3c763d;font-size: 16px;">群成员查询</b><br/>
                <form action="" method="get">
                    <input type="hidden" name="m" value="group_manage"/>
                    <input type="hidden" name="a" value="view_group_members"/>
                    <input type="hidden" name="id" value="<?=$_GET['id']?>"/>
                    <input type="text" name="name" value="<?=$name?>">&nbsp;&nbsp;
                    <button type="submit"  class="btn btn-default btn-success ">&nbsp;查 询&nbsp;</button>
                </form>
            </div>
            <div class="panel-group"  id="accordion" role="tablist" aria-multiselectable="true">
                <div class="panel panel-default">
                    <div class="panel-heading" style="background-color:#d5d5d5">
                    <div class="row" >
                          <div class="divleft">成员名称</div>
                            <div class="divcenter">角色</div>
                            <div class="divright" style="text-align:center">操作</div>
                        </div>
                    </div>
                </div>
                <?php foreach($groupMembers as $v):?>
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <div class="row" >
                                <div class="divleft">
                                    &nbsp;<?=$v['name']?>
                                </div>
                                <div class="divcenter">
                                    &nbsp; <?=$v['角色']?>
                                </div>
                                <div class="divright" style="text-align:center">
                                    <?php if($v['角色']!=='群主'):?>
                                    <a href="index.php?m=group_manage&a=del&userId=<?=$v['用户id']?>&groupId=<?=$v['群id']?>&page=<?=$_GET['page']?>" onclick=" javascript:  return  confirm('是否确认删除?')">删除</a>
                                    <?php endif;?>
                                </div>
                            </div>
                        </div>
                    </div>
                <?php endforeach;if(!$groupMembers):?>
                <div class="panel-heading text-center"><h3 class="panel-title">没有数据 !!!</h3></div>
                <?php endif;?>
            </div>
            <div><?=$page->showpage();?></div>
        </div>

    </div>
</div>
<?php require 'templates/common/foot.html'; ?>
</body>
</html>

